<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh,edit')}
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover"
                           data-operate-edit="{:$auth->check('dormitory/student/edit')}"
                           data-operate-del="false"
                           width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script id="gardenTpl" type="text/html">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-inline" data-toggle="cxselect" data-selects="garden_number,building_number,dorm_number">
                <input type="hidden" class="operate" data-name="b.garden_number" id="garden_number" value="=" />
                <input type="hidden" class="operate" data-name="b.building_number" id="building_number" value="=" />

                <select class="garden_number form-control" name="b.garden_number" data-url="dormitory/garden/cxSelect"></select>
                <select class="building_number form-control" name="b.building_number" data-url="dormitory/building/cxSelect" data-query-name="garden_number"></select>
                <select class="dorm_number form-control" name="dorm_number" data-url="dormitory/dorm/cxSelect" data-query-name="building_number"></select>
            </div>
        </div>
    </div>
</script>

<script id="classTpl" type="text/html">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-inline" data-toggle="cxselect" data-selects="grade,classes">
                <select class="form-control grade" name="grade_id" data-url="base/grade/cxSelect"></select>
                <select class="form-control classes" name="class_id" data-url="base/classes/cxSelect" data-query-name="grade_id"></select>
            </div>
        </div>
    </div>
</script>